package com.lulin.mall.product.dao;

import com.lulin.mall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 *
 * @author lulin
 * @email 2032327049@qq.com
 * @date 2022-09-21 14:25:13
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {
    /**
     * 根据商品id，更新商品状态为上架
     * @param spuId 商品id
     * @param code 上架状态
     */
    void updateSpuStatusUp(@Param("spuId") Long spuId, @Param("code") int code);
}
